package com.wanmait.movie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wanmait.movie.entity.Mall;
import com.wanmait.movie.entity.VO.BrandVO;
import com.wanmait.movie.entity.VO.MallVO;
import com.wanmait.movie.mapper.MallMapper;
import com.wanmait.movie.service.MallService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

/**
 * ClassName: MallServiceImpl
 * Package: com.wanmait.movie.service.impl
 * Description:
 *
 * @Author Fengxd
 * @Create 2023/12/16 12:29
 * @Version 1.0
 */
@Service
public class MallServiceImpl extends ServiceImpl<MallMapper, Mall> implements MallService {
    @Override
    public List<MallVO> getMallInfo() {
        return this.list().stream().map(mall -> new MallVO(mall.getId(),mall.getMName())).collect(Collectors.toList());
    }
}
